﻿using BW.MesProject.BasicData.Domain.Dto;
using BW.MesProject.BasicData.Domain.基础;
using BW.MesProject.Public.ErrorCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.BasicData.Infrastructure
{
    public interface IProductionlineServices
    {
        //添加
        ApiResult<int> AddProductionline(ProductionlineModel model);
        //修改
        ApiResult<int> UpdateProductionline(ProductionlineModel model);
        //删除
        ApiResult<int> DeleteProductionline(long id);
        //根据名称获取
        ApiPaging<List<ProductionlineDto>> GetProductionline(string? productionlinecode,string? Productionlinename, int pageindex, int pagesize);
        //根据id获取数据
        ApiResult<ProductionlineModel> GetProductionlineById(long id);
        //获取所有数据
        ApiResult<List<ProductionlineModel>> GetAllProductionline();

    }
}
